package org.hxyjs.dao;

import org.hxyjs.entity.Restaurant;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface RestaurantDao {
    public List<Restaurant>  getAllRestaurants()  throws Exception;
    public Restaurant getRestaurantByRno(String rno) throws Exception;
    public List<Restaurant> getRestaurantByPage(PageInfo pageInfo) throws Exception;

//    public Restaurant  selectRestaurantBySno(String rno)  throws Exception;
    //增删改的返回值都是整数
    Integer deleteRestaurantByRno(String rno)  throws Exception;
    Integer updateRestaurantByRno(Restaurant restaurant)  throws Exception;
    Integer addRestaurantByRno(Restaurant restaurant)  throws Exception;
    //Restaurant getRestaurantByRno(String rno) throws Exception;
    Restaurant selectRestaurantWithorderAndUser(String rno) throws Exception;
    Restaurant getAccountByAccountName(String rno) throws Exception;


    List<Restaurant>  getFreeRestaurantByDate(String beginDate,String endDate)  throws Exception;
}
